package chapter6;
import java.util.Scanner;
/****************************************************************
 * Author：icynlau
 * Description: 五角数
 * Date:2021/4/4
 * ***************************************************************
 */
public class exc6_1 {
	
	public static int getPentagonalNumber(int n) {
		
		return (int )(n*(3*n-1)/2); 
		
	}
	
	public static void main(String[] args) {
		
		for(int i=0;i<100;i++) {
			
			System.out.printf("\t%-10d",getPentagonalNumber(i+1));
			if((i+1)%10==0) {
				System.out.print("\n");
			}
		}
		
	}

}
